<template>
  <div>
    <span style="font-size:18px">欢迎使用EasyD后台管理端，祝您开发愉快！！！</span>

    <!-- <upload-image
      :preview="previewImage"
      v-on:cropperImage="cropperImageClick"
      v-on:uploadImageChange="uploadChange"
    ></upload-image> -->
  </div>
</template>

<script>
export default {
  data() {
    return {
      previewImage: ""
    };
  },
  mounted() {

    this.$http.AAA(rsUrl => {
        
      });


  },
  methods: {
    uploadChange(e) {
      var fileObj = e.target.files[0];
      this.$http.Aliyun_uploadImageHttp(fileObj, { dir : '2018' } ,rsUrl => {
        this.previewImage = rsUrl;
      });
    },
    cropperImageClick() {
      var that = this;
      this.$cropperImage({
        //裁切完成后回调函数
        cropperImageResult(file) {
          // that.$http.EasyD_uploadImageHttp(file, {}, rs => {
            that.$http.Aliyun_uploadImageHttp(file, { dir : '/2018' } ,rsUrl => {
              that.previewImage = rsUrl;
            })
          // });
        },
        //要裁切的图片
        imgUrl: that.previewImage
      });
    }
  }
};
</script>

<style lang="stylus" scoped>
</style>
